<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="asd"></div>
</body>
</html>
<script>
    const ad = document.querySelector('#asd')
    const lt = document.createDocumentFragment()
    const p = document.createElement('p')
    const h1 = document.createElement('h1')
    const h2 = document.createElement('h2')
    lt.append('h1,h2,h3',p,h1,h2)
    ad.appendChild(lt)
</script>